<template>
  <view>
    <Mylogin v-if="token===''"></Mylogin>
    <Myuserinfo v-else></Myuserinfo>
  </view>
</template>

<script>
  import {mapState } from 'vuex'
    import getTabBarBadge from "../../mixins/getTabBarBadge.js" 
  export default {
    data() {
      return {
        
      };
    },
    mixins:[getTabBarBadge],
    computed:{
      ...mapState('userStore',['token'])
    },
    mounted() {
      console.log(this.token);
    }
  }
  
</script>

<style lang="scss">

</style>
